package com.wb.eshop.auth.controller;

import com.wb.eshop.auth.domain.PriorityVO;
import com.wb.eshop.auth.service.biz.PriorityBizService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName PriorityController
 * @Deacription 权限
 * @Author wangbin
 * @Date 2021/1/26 9:45
 * @Version 1.0
 **/
@RestController
@RequestMapping("/auth")
@Api(tags = "权限")
@Slf4j
public class PriorityController {

    /**
     * 权限管理模块的service组件
     */
    @Autowired
    private PriorityBizService priorityBizService;

    /**
     * 查询根权限
     * @return 根权限集合
     */
    @GetMapping("/priority/root")
    @ApiOperation(value = "查询根权限")
    public List<PriorityVO> listRootPriorities() {
        return null;
    }

}
